<!--  Ofri Keidar 302933981 group 05 -->

<%@page import="java.util.Enumeration"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Logout</title>
</head>
<body>

	<%
		// clear session's attributes, in case logging in as a new user
		@SuppressWarnings("rawtypes")
		Enumeration attNames = session.getAttributeNames();
		while (attNames.hasMoreElements()) {

			// get current attribute name
			String currAttribute = (String) attNames.nextElement();

			// remove attributr
			session.removeAttribute(currAttribute);
		}
		
		// move to login page
		response.sendRedirect("Login.jsp");
	%>

</body>
</html>